Optimal. Leaf size=87 \[ \frac {2 i \coth (c+d x)}{a d}+\frac {3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}-\frac {3 \coth (c+d x) \text {csch}(c+d x)}{2 a d}+\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2768, 2748, 3768, 3770, 3767, 8} \[ \frac {2 i \coth (c+d x)}{a d}+\frac {3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}-\frac {3 \coth (c+d x) \text {csch}(c+d x)}{2 a d}+\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2748
Rule 2768
Rule 3767
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \frac {\text {csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx &=\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac {\int \text {csch}^3(c+d x) (-3 a+2 i a \sinh (c+d x)) \, dx}{a^2}\\ &=\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac {(2 i) \int \text {csch}^2(c+d x) \, dx}{a}+\frac {3 \int \text {csch}^3(c+d x) \, dx}{a}\\ &=-\frac {3 \coth (c+d x) \text {csch}(c+d x)}{2 a d}+\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac {3 \int \text {csch}(c+d x) \, dx}{2 a}-\frac {2 \operatorname {Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{a d}\\ &=\frac {3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}+\frac {2 i \coth (c+d x)}{a d}-\frac {3 \coth (c+d x) \text {csch}(c+d x)}{2 a d}+\frac {\coth (c+d x) \text {csch}(c+d x)}{d (a+i a \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.44, size = 90, normalized size = 1.03 \[ \frac {4 i \tanh (c+d x)+4 i \text {csch}(2 (c+d x))-3 \text {sech}(c+d x)+\text {csch}^2(c+d x) (-\text {sech}(c+d x))+3 \sqrt {\cosh ^2(c+d x)} \text {sech}(c+d x) \tanh ^{-1}\left (\sqrt {\cosh ^2(c+d x)}\right )}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.58, size = 242, normalized size = 2.78 \[ \frac {{\left (3 \, e^{\left (5 \, d x + 5 \, c\right )} - 3 i \, e^{\left (4 \, d x + 4 \, c\right )} - 6 \, e^{\left (3 \, d x + 3 \, c\right )} + 6 i \, e^{\left (2 \, d x + 2 \, c\right )} + 3 \, e^{\left (d x + c\right )} - 3 i\right )} \log \left (e^{\left (d x + c\right )} + 1\right ) - {\left (3 \, e^{\left (5 \, d x + 5 \, c\right )} - 3 i \, e^{\left (4 \, d x + 4 \, c\right )} - 6 \, e^{\left (3 \, d x + 3 \, c\right )} + 6 i \, e^{\left (2 \, d x + 2 \, c\right )} + 3 \, e^{\left (d x + c\right )} - 3 i\right )} \log \left (e^{\left (d x + c\right )} - 1\right ) - 6 \, e^{\left (4 \, d x + 4 \, c\right )} + 6 i \, e^{\left (3 \, d x + 3 \, c\right )} + 10 \, e^{\left (2 \, d x + 2 \, c\right )} - 2 i \, e^{\left (d x + c\right )} - 8}{2 \, a d e^{\left (5 \, d x + 5 \, c\right )} - 2 i \, a d e^{\left (4 \, d x + 4 \, c\right )} - 4 \, a d e^{\left (3 \, d x + 3 \, c\right )} + 4 i \, a d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a d e^{\left (d x + c\right )} - 2 i \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.75, size = 97, normalized size = 1.11 \[ \frac {\frac {3 \, \log \left (e^{\left (d x + c\right )} + 1\right )}{a} - \frac {3 \, \log \left (e^{\left (d x + c\right )} - 1\right )}{a} - \frac {2 \, {\left (e^{\left (3 \, d x + 3 \, c\right )} - 2 i \, e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (d x + c\right )} + 2 i\right )}}{a {\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{2}} - \frac {4 i}{a {\left (i \, e^{\left (d x + c\right )} + 1\right )}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.11, size = 119, normalized size = 1.37 \[ \frac {i \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 d a}+\frac {\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d a}+\frac {2 i}{d a \left (-i+\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}-\frac {1}{8 d a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\frac {i}{2 d a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {3 \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 158, normalized size = 1.82 \[ -\frac {8 \, {\left (-i \, e^{\left (-d x - c\right )} - 5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 3 i \, e^{\left (-3 \, d x - 3 \, c\right )} + 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4\right )}}{{\left (8 \, a e^{\left (-d x - c\right )} - 16 i \, a e^{\left (-2 \, d x - 2 \, c\right )} - 16 \, a e^{\left (-3 \, d x - 3 \, c\right )} + 8 i \, a e^{\left (-4 \, d x - 4 \, c\right )} + 8 \, a e^{\left (-5 \, d x - 5 \, c\right )} + 8 i \, a\right )} d} + \frac {3 \, \log \left (e^{\left (-d x - c\right )} + 1\right )}{2 \, a d} - \frac {3 \, \log \left (e^{\left (-d x - c\right )} - 1\right )}{2 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.61, size = 132, normalized size = 1.52 \[ \frac {3\,\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-a^2\,d^2}}{a\,d}\right )}{\sqrt {-a^2\,d^2}}-\frac {2}{a\,d\,\left ({\mathrm {e}}^{c+d\,x}-\mathrm {i}\right )}-\frac {{\mathrm {e}}^{c+d\,x}}{a\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-\frac {2\,{\mathrm {e}}^{c+d\,x}}{a\,d\,{\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}^2}+\frac {2{}\mathrm {i}}{a\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {i \int \frac {\operatorname {csch}^{3}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________